package com.xdemo.personal.socketserver.msg;

import com.xdemo.core.MessageType;

public class ResultFoundMessage extends BasePlayerMessage {
	
	private int key;
	
	private long result;
	
	public ResultFoundMessage() {
		
	}
	
	public ResultFoundMessage(int key,long value) {
		this.key = key;
		this.result = value;
	}

	@Override
	public void writeImpl() {
		writeInt(key);
		writeLong(result);
	}

	@Override
	public void readImpl() {
		key = readInt();
		result = readLong();
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public long getResult() {
		return result;
	}

	public void setResult(long result) {
		this.result = result;
	}

	@Override
	public Integer getType() {
		return MessageType.Result;
	}

}
